//用来完成不同数据的改变
const mutations = {
  increment(state) {
    return {
      count: ++state.count
    }
  },
  decrement(state) {
    return {
      count: --state.count
    }
  },
  cover(state, count) {
    return {
      count
    }
  },
  changeTitle(state, title) {
    return {
      title
    }
  },
  changeBack(state, back) {
    return {
      back
    }
  },
  changeBarIndex(state, index) {
    return {
      selectBarIndex: index
    }
  },
  changeTabBarShow(state, show) {
    return {
      isTabBarShow: show
    }
  }
}
export default mutations